package hcn.protocol.ods;

import ctd.util.xml.jaxb.DateTimeAdapter;

import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
import java.io.Serializable;
import java.util.Date;

/**
 * Created by zhengz on 2015/12/11.
 */
@XmlRootElement(name = "regSource")
public class RegSourceBean implements Serializable{

    private static final long serialVersionUID = -4202059427795321895L;
    private Date startDt;    //号源起始时间
    private Date endDt;    //号源结束时间
    private int count;     //号源数量
    private String workId ;     //排班时间段的Id ,中山需求

    @XmlElement
    @XmlJavaTypeAdapter(DateTimeAdapter.class)
    public Date getStartDt() {
        return startDt;
    }

    public void setStartDt(Date startDt) {
        this.startDt = startDt;
    }

    @XmlElement
    @XmlJavaTypeAdapter(DateTimeAdapter.class)
    public Date getEndDt() {
        return endDt;
    }

    public void setEndDt(Date endDt) {
        this.endDt = endDt;
    }

    @XmlElement
    public int getCount() {
        return count;
    }

    public void setCount(int count) {
        this.count = count;
    }

    @XmlElement
    public String getWorkId() {
        return workId;
    }

    public void setWorkId(String workId) {
        this.workId = workId;
    }

}
